package com.wsz.cloud.core.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class UserInfo implements Serializable{

	private static final long serialVersionUID = -8983664818105915618L;

	
	
	public UserInfo(Long id, String username, String name) {
		super();
		this.id = id;
		this.username = username;
		this.name = name;
	}
	
	

	public UserInfo() {
		super();
	}



	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	
	private String username;
	
	@Column
	private String name;
	
	@Column
	private Short age;
	
	@Column
	private BigDecimal bglance;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}	

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Short getAge() {
		return age;
	}

	public void setAge(Short age) {
		this.age = age;
	}

	public BigDecimal getBglance() {
		return bglance;
	}

	public void setBglance(BigDecimal bglance) {
		this.bglance = bglance;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "UserInfo [id=" + id + ", username=" + username + ", name=" + name + ", age=" + age + ", bglance="
				+ bglance + "]";
	}
}
